package com.example.admin.service;


import com.example.xo.pojo.Blog;
import com.example.xo.xo.BlogVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 992c
 */
@Transactional
public interface BlogService {
    public boolean add(Blog blog);

    public List<BlogVo> findAll();

    public BlogVo findById(String id);

    public Blog findBlogById(String id);

    public BlogVo findByTitle(String title);

    public boolean deleteById(String id);

    public boolean update(Blog blog);

    public Blog findPoById(String id);
}
